package cn.jingyuan.bee.enums.support;

import cn.jingyuan.bee.enums.EnumInteger;

/**
 * 性别
 */
public enum GenderEnum implements EnumInteger {

    MAN(0, "男"),

    WOMAN(1, "女"),

    UNKNOWN(2, "未知");

    final Integer value;

    final String valueName;

    GenderEnum(Integer value, String valueName) {
        this.value = value;
        this.valueName = valueName;
    }

    public static GenderEnum valueOf(Integer value) {
        return EnumInteger.from(GenderEnum.class, value);
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getValueName() {
        return valueName;
    }

}
